<?php
/**
 * Created by PhpStorm
 * User: whh
 * Date: 2022/8/13
 * Time: 9:27
 */

namespace app\reception\logic;


use app\common\model\QuickLog;

class LogLogic
{

    /**
     * 记录快应用日志
     * @param $theKey
     * @param $content
     * @param int $uid
     * @param int $qid
     * @param int $apiVersion
     * @Author: whh
     */
    public static function addLog($theKey, $content, $uid = 0, $qid = 0, $apiVersion = 0)
    {
        $log = new QuickLog();
        $log->the_key = $theKey;
        $log->content = $content;
        $log->uid = $uid;
        $log->qid = $qid;
        $log->api_version = $apiVersion;
        $log->save();
    }
}